{% load commenttags %}
{% load markup %}
{% load pp_url %}


{% if request.user.is_authenticated %}
<a href="javascript:;" onmousedown="toggleSlide('add_comment');"><h3>add comment</h3></a>
    <div id="add_comment" style="display:none; overflow:hidden; height:180px;">
           {% pp_comment_form POST=request.POST path=request.path user=request.user object=request.object%}
            <div class="errors">{{ pp_comment.form.errors }}</div>
                <form method="post" action="">
                    {{ pp_comment.form.text}} 
                    {{ pp_comment.form.parent}}
                    {{pp_comment.form.form_id}}
                    {% csrf_token %}
                <input type="submit" class='button green' value="Submit Comment">
                </form>
        {% endpp_comment_form %}
    </div>

{% else %} 
<a href="/register.html"><h3>add comment</h3></a>
{% endif %}
